import React from 'react';
import { BrowserRouter } from 'react-router-dom'
import RouterView from './router/route.view'
import routes from './router/route.config'

declare namespace JSX {
  interface ElementAttributesProperty {
    routes: object[]; // 指定用来使用的属性名
  }
}

class App extends React.Component {
  render(){
    return (
    <BrowserRouter>
      <RouterView routes={routes}></RouterView>
    </BrowserRouter>)
  }
}

export default App;
